CXXFLAGS+=-Wall

all: main


main.o: main.cpp rational.h


rational.o: rational.cpp rational.h


main: rational.o main.o
	g++ -o main rational.o main.o

clean:
	rm -rf *~ *.o main
